package com.caiying.dota.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "tbl_dota_skill")
public class DotaSkill {
	private String descrip;
	private DotaHero hero;
	private int id;
	private String image;
	private String intro;
	private String name;
	
	public DotaSkill() {
		super();
	}

	public DotaSkill(String descrip, DotaHero hero, String image, String intro,
			String name) {
		super();
		this.descrip = descrip;
		this.hero = hero;
		this.image = image;
		this.intro = intro;
		this.name = name;
	}
	@Column(length=10000)
	public String getDescrip() {
		return descrip;
	}

	@ManyToOne
	public DotaHero getHero() {
		return hero;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public int getId() {
		return id;
	}

	public String getImage() {
		return image;
	}

	@Column(length=10000)
	public String getIntro() {
		return intro;
	}

	public String getName() {
		return name;
	}

	public void setDescrip(String descrip) {
		this.descrip = descrip;
	}

	public void setHero(DotaHero hero) {
		this.hero = hero;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public void setName(String name) {
		this.name = name;
	}
}
